-- GENERATED SPELL FOR [Foulweald Den Watcher] --


function spell0_3746(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_3746', 645, 1)
end

function Sorts_3746(pUnit, Event)
local choix_sorts_3746 = math.random(0, 0)
if choix_sorts_3746 == 0 then
pUnit:RegisterEvent('spell0_3746', 1, 1)
end
end

function mob3746_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3746', math.random(1500, 3000), 1)
end

function mob3746_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3746_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3746_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3746, 1, 'mob3746_Action')
RegisterUnitEvent(3746, 2, 'mob3746_Leave')
RegisterUnitEvent(3746, 3, 'mob3746_Kill')
RegisterUnitEvent(3746, 4, 'mob3746_Die')
